<template>
    <el-row>
        <el-col :xs="20" :sm="20" :md="10" :lg="12" :xl="12" >
            <el-form ref="form" :model="shuju" label-width="120px">
                <el-form-item :label="shuju.miaoshu">
                <el-input v-model="shuju.zhi" @blur="gai"></el-input>
                </el-form-item>
            </el-form>
        </el-col>
        <el-col :xs="4" :sm="4" :md="2" :lg="1" :xl="1"  class="zhong wenzi12 yanse0">{{shuju.name}}</el-col>
    </el-row>
</template>

<script>
import {request} from '../api/request.js'
import { ElMessage,ElLoading } from 'element-plus'
export default {
    name:'Divinput',
    props:['shuju'],
    methods:{
        gai(){
            const loadingInstance = ElLoading.service();
            var data=this.shuju;
            data.token=window.sessionStorage.getItem('token');
            request('/g/xitong/gai_xitong',data,res=>{
                loadingInstance.close();
                ElMessage.success(res.msg);
            },err=>{})
        }
    }
}
</script>
<style scoped>
.el-form-item{margin-bottom: 11px; margin-top: 11px;}
</style>